package com.bawei.viewmodel_livedata_test;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.ViewModel;
//注意：不要向ViewModel中传入Context,会导致内存泄漏，如果使用Context请使用AndroidViewModel的Appliction
public class NumViewModel extends AndroidViewModel {
    public int num;

    public NumViewModel(@NonNull Application application) {
        super(application);
    }
}
